import { useEffect } from "react";

const child = ({ columns, getTestData }) => {
  //形参解构
  useEffect(() => {
    console.log(columns, "columns");
    setTimeout(() => {
      getTestData(1);
    }, 2000);
  }, []);
  return (
    <>
      <div>我是子组件</div>
    </>
  );
};
export default child;

